package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.model.entity.NewsEntity;
import com.example.demo.model.entity.TeacherEntity;
import com.example.demo.model.param.NewsParam;
import com.example.demo.model.param.TeacherParam;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TeacherMapper extends BaseMapper<TeacherEntity> {




    @Select("<script>select * from t_teacher where 1=1 <when test='param.name != null and param.name != \"\"'>and name = #{param.name}</when></script>")
    List<TeacherEntity> selectTeachersList(@Param("param") TeacherParam teacherParam);
}
